package com.wu.ssm.aspect;


import com.wu.ssm.spring.annotion.MyController;
import com.wu.ssm.spring.aop.AspectProxy;
import com.wu.ssm.spring.aop.annotion.Aspect;
import com.wu.ssm.spring.aop.annotion.AspectOrder;

import java.lang.reflect.Method;

/**
 * 切面
 * 拦截controller所有方法
 * Created by wzf on 2018/11/26/026.
 */

@Aspect(value = MyController.class)
@AspectOrder(0)
public class ControllerAspect2 extends AspectProxy {
    private static final org.slf4j.Logger LOGGER = org.slf4j.LoggerFactory.getLogger(AspectProxy.class);

    private long begin;

    @Override
    public void before(Class<?> clazz, Method method, Object[] params) {
        System.out.println("----2拦截controller所有方法2before----");
    }

    @Override
    public void after(Class<?> clazz, Method method, Object[] params) {
        System.out.println("----2拦截controller所有方法2after----");
    }
}
